<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>FactorySite</title>
    <meta name="robots" content="index,follow" />
    <meta name="keywords" content="Ego e cigarette manufacturer, Ego e cigarette factory, Ego e cigarette exporter , china Ego e cigarette,Ego CE4 E Cigarette kit supplier,Ego e cigarette china.Ego e cigarette made in china" />
    <meta name="description" content="high quality Ego e cigarette from China Ego e cigarette manufacturers - buy Ego e cigarette directly from China Ego e cigarette supplier." />
    <link rel="stylesheet" type="text/css" href="${ctx}/resources/site/css/style.css"/>
    <script type="text/javascript" src="http://style.alibaba.com/css/wmq/2v/js/extra/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="${ctx}/resources/site/js/banner.js"></script>
    <script type="text/javascript" src="${ctx}/resources/site/js/jquery.extend.js"></script>
  </head>
  
  <body>
<div id="header">
    <jsp:include page="common/menu.jsp">
    	<jsp:param value="contact" name="type"/>
    </jsp:include>
</div>
<!-- 位置链接 -->
<div id="hun"><a href="${ctx}/index.htm">Home</a> > <a href="${ctx}/contact.htm">Contact Us</a></div>
<!-- 内容主体开始 -->
<div id="body">
	<!-- 左侧开始 -->
	<jsp:include page="common/left.jsp"/>
	<!-- 左侧结束 -->
	<!-- 右侧开始 -->
	<div class="right">
		<!-- 联系我们开始 -->
		<dl class="dl dl4">
            <dt><h2><a class="a12" title="Contact Us">Contact Us</a></h2></dt>
            <dd class="cinfo">
                ${contact.infoContent}
                <div class="clear"></div>
            </dd>
        </dl>
        <!-- 联系我们结束 -->
        <!-- 留言开始 -->
        <dl class="dl dl4">
    <dt><h2><a class="a7">Send Inquiry Now!</a></h2></dt>
    <dd>
        <form id="messageform1" name="messageform1" action="message/post.htm" method="post" onsubmit="return mf1SubmitCheck(this)">
            <input type="hidden" id="pid" name="pid" value="0" />
            <table cellspacing="0" cellpadding="4" class="form">
                <tr>
                    <th>Subject : <span>*</span></th>
                    <td><input type="text" id="subject" name="msgSubject" vformat="required" style="width:500px;" /></td>
                </tr>
                <tr>
                    <th>Email : <span>*</span></th>
                    <td><input type="text" id="email" name="msgEmail" style="width:300px;" vformat="required/email" /></td>
                </tr>
                <tr>
                    <th style="padding-right:12px;">Name : </th>
                    <td><input type="text" id="name" name="msgName" style="width:200px;" /></td>
                </tr>
                <tr>
                    <th>Message : <span>*</span></th>
                    <td><textarea id="message" name="msgContent" style="width:600px;height:80px;" vformat="required"></textarea></td>
                </tr>
                <tr>
                    <th></th>
                    <td><input class="post" type="submit" value="Submit"></td>
                </tr>
            </table>
        </form>
    </dd>
</dl>
<script type="text/javascript">
	var fm_posting = 'posting...', fm_thanks = 'Thanks for your inquiry! We will contact you soon.';
    mf1valid = $('#messageform1').FormValidtor();
    function mf1SubmitCheck(f){
        if(mf1valid == null || !mf1valid.Check()){
            return false;
        }
        $(f).ajaxSubmit({ beforeSubmit: function(){
            $('input.post').text(fm_posting);
        }, complete: function(res){
            var data = eval("("+res.responseText+")");
            if(!data.success){
                alert(data.msg);
            }else{
                alert(fm_thanks);
                $('#messageform1').clearForm();
            }
        }});
        return false;
    }
</script>
        <!-- 留言结束 -->
	</div>
	<br clear="all"/>
	<!-- 右侧结束 -->
</div>
<!-- 内容主体结束 -->
<!-- 底部开始 -->
<jsp:include page="common/bottom.jsp"/>
<!-- 底部结束 -->
</body>
</html>